import { ISimpleDevice } from './device.interface';
import { IUser } from './auth.interface';
import { IRoom } from './api.interface';

export type ITabBarType = 'room-list' | 'log' | 'user';

export interface IManager extends IUser {
  super?: boolean;
}

export interface IStoreState {
  srand: string;
  token: string;
  accountInfo: IUser; // 当前登录账号信息
  managers: IManager[]; // 管理员
  devices: ISimpleDevice[];
  rooms: IRoom[]; // 房间列表
  curRoom: IRoom; // 当前进入的房间
  activeBar: ITabBarType; // 当前激活的的tab选项卡类型
}
